function toChangeModelApp(code) {

	if(code.length <= 0) {
		mdui.snackbar({
			message: '跳转失败，机型码为空'
		});
	} else {

		try {
			var words = window.atob(code).split('@');

			if(words.length == 5) {

				window.location.href = "dabai://model?code=" + code;
				mdui.snackbar({
					message: '正在尝试跳转...</br>如果跳转失败，请<a style="color:white;" href="https://www.coolapk.com/apk/241250" target="_blank">下载最新版机型更改App</a>'
				});

			} else {
				mdui.snackbar({
					message: '无效机型码'
				});
			}

		} catch(e) {
			mdui.snackbar({
				message: '无效机型码'
			});
		}

	}

}

function intoUrl(code) {
	if(code.length <= 0) {
		mdui.snackbar({
			message: '转化失败，机型码为空'
		});
		return "";
	} else {

		var codelink = "https://dabai2017.gitee.io/model-change-tool?code=" + code;
		return codelink;
	}

}

function verifyModelCode(code) {
	try {
		var words = window.atob(code).split('@');

		if(words.length == 5) {
			return true;
		} else {
			return false;
		}

	} catch(e) {
		return false;
	}
}


function initBmob(){
	
	
		var _0xodi = 'jsjiami.com.v6',
			_0xodi_ = ['‮_0xodi'],
			_0x3ade = [_0xodi, 'F8KhwrQ4VxlFwobCqMOe', 'w7DChT3CplLDqMO3b8OAccODwrEfR8K6wps=', 'wpMycMOxXE8=', 'lFjsrfwhjAiamCi.VkqcoCm.qFv6=='];
		if(function(_0x2dcd8d, _0x1be8af, _0x10ca28) {
				function _0x1eb452(_0x1bdda4, _0x180a8d, _0x442194, _0xb22752, _0x4bcead, _0x190276) {
					_0x180a8d = _0x180a8d >> 0x8, _0x4bcead = 'po';
					var _0x3ff930 = 'shift',
						_0x250795 = 'push',
						_0x190276 = '‮';
					if(_0x180a8d < _0x1bdda4) {
						while(--_0x1bdda4) {
							_0xb22752 = _0x2dcd8d[_0x3ff930]();
							if(_0x180a8d === _0x1bdda4 && _0x190276 === '‮' && _0x190276['length'] === 0x1) {
								_0x180a8d = _0xb22752, _0x442194 = _0x2dcd8d[_0x4bcead + 'p']();
							} else if(_0x180a8d && _0x442194['replace'](/[lFrfwhACVkqCqF=]/g, '') === _0x180a8d) {
								_0x2dcd8d[_0x250795](_0xb22752);
							}
						}
						_0x2dcd8d[_0x250795](_0x2dcd8d[_0x3ff930]());
					}
					return 0xc4231;
				};
				return _0x1eb452(++_0x1be8af, _0x10ca28) >> _0x1be8af ^ _0x10ca28;
			}(_0x3ade, 0xe4, 0xe400), _0x3ade) {
			_0xodi_ = _0x3ade['length'] ^ 0xe4;
		};

		function _0x105d(_0x479004, _0x3fc9cc) {
			_0x479004 = ~~'0x' ['concat'](_0x479004['slice'](0x1));
			var _0x180852 = _0x3ade[_0x479004];
			if(_0x105d['BTrjNf'] === undefined) {
				(function() {
					var _0x5ca3de = typeof window !== 'undefined' ? window : typeof process === 'object' && typeof require === 'function' && typeof global === 'object' ? global : this;
					var _0x350f98 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
					_0x5ca3de['atob'] || (_0x5ca3de['atob'] = function(_0x90de3) {
						var _0x229e6d = String(_0x90de3)['replace'](/=+$/, '');
						for(var _0x389433 = 0x0, _0x548e5d, _0x20068d, _0x55b586 = 0x0, _0x3d7826 = ''; _0x20068d = _0x229e6d['charAt'](_0x55b586++); ~_0x20068d && (_0x548e5d = _0x389433 % 0x4 ? _0x548e5d * 0x40 + _0x20068d : _0x20068d, _0x389433++ % 0x4) ? _0x3d7826 += String['fromCharCode'](0xff & _0x548e5d >> (-0x2 * _0x389433 & 0x6)) : 0x0) {
							_0x20068d = _0x350f98['indexOf'](_0x20068d);
						}
						return _0x3d7826;
					});
				}());

				function _0x526358(_0x1deca3, _0x3fc9cc) {
					var _0x1bb1bc = [],
						_0x28941c = 0x0,
						_0x507f0b, _0x4667f1 = '',
						_0x5e6804 = '';
					_0x1deca3 = atob(_0x1deca3);
					for(var _0x5ab606 = 0x0, _0x2d8a3d = _0x1deca3['length']; _0x5ab606 < _0x2d8a3d; _0x5ab606++) {
						_0x5e6804 += '%' + ('00' + _0x1deca3['charCodeAt'](_0x5ab606)['toString'](0x10))['slice'](-0x2);
					}
					_0x1deca3 = decodeURIComponent(_0x5e6804);
					for(var _0x545155 = 0x0; _0x545155 < 0x100; _0x545155++) {
						_0x1bb1bc[_0x545155] = _0x545155;
					}
					for(_0x545155 = 0x0; _0x545155 < 0x100; _0x545155++) {
						_0x28941c = (_0x28941c + _0x1bb1bc[_0x545155] + _0x3fc9cc['charCodeAt'](_0x545155 % _0x3fc9cc['length'])) % 0x100;
						_0x507f0b = _0x1bb1bc[_0x545155];
						_0x1bb1bc[_0x545155] = _0x1bb1bc[_0x28941c];
						_0x1bb1bc[_0x28941c] = _0x507f0b;
					}
					_0x545155 = 0x0;
					_0x28941c = 0x0;
					for(var _0x551328 = 0x0; _0x551328 < _0x1deca3['length']; _0x551328++) {
						_0x545155 = (_0x545155 + 0x1) % 0x100;
						_0x28941c = (_0x28941c + _0x1bb1bc[_0x545155]) % 0x100;
						_0x507f0b = _0x1bb1bc[_0x545155];
						_0x1bb1bc[_0x545155] = _0x1bb1bc[_0x28941c];
						_0x1bb1bc[_0x28941c] = _0x507f0b;
						_0x4667f1 += String['fromCharCode'](_0x1deca3['charCodeAt'](_0x551328) ^ _0x1bb1bc[(_0x1bb1bc[_0x545155] + _0x1bb1bc[_0x28941c]) % 0x100]);
					}
					return _0x4667f1;
				}
				_0x105d['rzcejK'] = _0x526358;
				_0x105d['XEutWb'] = {};
				_0x105d['BTrjNf'] = !![];
			}
			var _0x17e10f = _0x105d['XEutWb'][_0x479004];
			if(_0x17e10f === undefined) {
				if(_0x105d['ZGgTqv'] === undefined) {
					_0x105d['ZGgTqv'] = !![];
				}
				_0x180852 = _0x105d['rzcejK'](_0x180852, _0x3fc9cc);
				_0x105d['XEutWb'][_0x479004] = _0x180852;
			} else {
				_0x180852 = _0x17e10f;
			}
			return _0x180852;
		};
		Bmob[_0x105d('‫0', 'YHTD')](_0x105d('‫1', 'wQ35'), _0x105d('‫2', 'H^hX'));;
		_0xodi = 'jsjiami.com.v6';

	
}
